package org.brakepedal.server.support.websocket.route;

import org.jetbrains.annotations.NotNull;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Date: 2024/3/31 19:37
 *
 * @author Huanyu Mark
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Route {
    @NotNull
    @AliasFor("path")
    String value();
    @AliasFor("value")
    String path() default "";
}
